flirt with

verbs

take into consideration, have in view
"He entertained the notion of moving to South America"